package com.garrigou.spaceship.layer;

import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.World;
import com.garrigou.spaceship.director.Director;
import com.garrigou.spaceship.event.ActorEvent;
import com.garrigou.spaceship.event.ActorEventObserver;
import com.garrigou.spaceship.scenes.Layer;

public class GameLayer extends Layer implements ActorEventObserver
{

    // Director of the action.
    private Director director;
    private World    world;

    /**
     * Create pulse group layer.
     * 
     * @param stage
     */
    public GameLayer(float width, float height)
    {
        setSize(width, height);

        director = Director.instance();

        createView();
    }

    /**
     * Build View elements.
     * 
     */
    private void createView()
    {
        // create the world
        world = new World(new Vector2(0, -5), true);


//        createCentralModel();

//        createCentralSprite();
    }

    @Override
    public boolean handleEvent(ActorEvent event)
    {

        return false;
    }

}
